package com.langyiquan.bo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

@ApiModel(value = "SysUserInfoBO")
public class SysUserInfoBO {

    @ApiModelProperty(name = "ID",value = "ID",required = false)
    private Integer id;

    @NotBlank(message = "1001")
    @ApiModelProperty(name = "username",value = "用户名",required = true)
    private String username;

    @NotBlank(message = "1002")
    @Length(min = 6, message = "1009")
    @ApiModelProperty(name = "password",value = "密码",required = false)
    private String password;

    @NotBlank(message = "1013")
    @ApiModelProperty(name = "realname",value = "真实姓名",required = true)
    private String realname;

    @NotBlank(message = "1010")
    @Pattern(regexp = "^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1}))+\\d{8})$", message = "1012")
    @ApiModelProperty(name = "mobile",value = "手机号",required = true)
    private String mobile;

    @NotNull(message = "2002")
    @ApiModelProperty(name = "dept_id",value = "部门Id",required = true)
    private Integer deptId;

    @ApiModelProperty(name = "status",value = "用户状态",required = true)
    private Integer status;

    @ApiModelProperty(name = "remark",value = "备注信息",required = false)
    private String remark;

    @ApiModelProperty(hidden = true)
    private String operatorIp;

    @ApiModelProperty(hidden = true)
    private Integer operatorId;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    public Integer getDeptId() {
        return deptId;
    }

    public void setDeptId(Integer deptId) {
        this.deptId = deptId;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getOperatorIp() {
        return operatorIp;
    }

    public void setOperatorIp(String operatorIp) {
        this.operatorIp = operatorIp;
    }

    public Integer getOperatorId() {
        return operatorId;
    }

    public void setOperatorId(Integer operatorId) {
        this.operatorId = operatorId;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
}

